import request from '@/utils/request'

// 查询查询结果记录列表
export function listResult(query) {
  return request({
    url: '/ggsearch/result/list',
    method: 'get',
    params: query
  })
}

// 查询查询结果记录详细
export function getResult(keyId) {
  return request({
    url: '/ggsearch/result/' + keyId,
    method: 'get'
  })
}

// 新增查询结果记录
export function addResult(data) {
  return request({
    url: '/ggsearch/result',
    method: 'post',
    data: data
  })
}

// 修改查询结果记录
export function updateResult(data) {
  return request({
    url: '/ggsearch/result',
    method: 'put',
    data: data
  })
}

// 删除查询结果记录
export function delResult(keyId) {
  return request({
    url: '/ggsearch/result/' + keyId,
    method: 'delete'
  })
}
